package com.self.admin.vo;

import com.self.admin.model.SysMenu;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.authority.SimpleGrantedAuthority;

import java.io.Serializable;
import java.util.List;

/**
 * @version v1.0
 * @ClassName: LoginResultVo
 * @Description:
 * @Author: Mac
 * @Date: 2022/6/2 22:32
 */
@ApiModel("登陆返回数据")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginResultVo implements Serializable {
    private static final long serialVersionUID = -258020382045926895L;

    @ApiModelProperty("登陆成功token")
    private String token;

    @ApiModelProperty("菜单权限")
    private List<SysMenu> menus;

    @ApiModelProperty("访问权限")
    private List<SimpleGrantedAuthority> authorities;
}
